import request from "../utils/request";
// import store from "../store";

/**
 *
 * @param {查询热源带权限} params
 * @returns
 */
export function getHeatSourcePermisstion(params) {
    return request({
        url: "/userHeatStation/listUserHeatStation",
        method: "post",
        params,
    });
}

/**
 *
 * @param {没有权限查询热源} params
 * @returns
 */
export function getHeatSource(params) {
    return request({
        url: "/heatSource/listHeatSource",
        method: "post",
        params,
    });
}
// /**
//  *
//  * @param {没有权限查询热源} params
//  * @returns
//  */
// export function getHeatSource(params) {
//     return request({
//         url: "/heatSource/listHeatSource",
//         method: "post",
//         params,
//     });
// }

/**
 *
 * @param {添加热源} params
 * @returns
 */
export function addHeatSource(params) {
    return request({
        url: "/heatSource/addHeatSource",
        method: "post",
        params,
    });
}

/**
 *
 * @param {编辑热源} params
 * @returns
 */
export function editHeatSource(params) {
    return request({
        url: "/heatSource/updateHeatSource",
        method: "post",
        params,
    });
}

/**
 *
 * @param {删除热源} params
 * @returns
 */
export function delHeatSource(params) {
    return request({
        url: "/heatSource/delHeatSource",
        method: "post",
        params,
    });
}